#ifndef __DELAY_H
#define __DELAY_H 			   
#include "sys.h"  

#define TIME_UNIT_US			0x00
#define TIME_UNIT_100US			0x01
#define TIME_UNIT_1MS			0x02
#define TIME_UNIT_200MS			0x03	

void delay_init(void);
void delay_ms(u16 nms);
void delay_us(u32 nus);

void DelayUS(unsigned int iTimes);
void Delay100uS(unsigned int iTimes);
void Timer4_Init(unsigned char cMode);
void Timer4_Wait(unsigned short sTime);
void Timer4_Stop(void);
void Beep(void);
void open(u8 floor);

#endif





























